package com.zjitc.service;

import com.zjitc.pojo.Car;
import com.zjitc.pojo.Cart;
import com.zjitc.pojo.Order;
import com.zjitc.pojo.OrderItem;
import com.zjitc.pojo.User;
import java.util.List;
import java.util.Locale.Category;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/19 15:00
 * @description:
 */
public interface UserService {
  /**用户登录*/
  User login(String accountnumber, String password);

  void add(User user);

  List<Car> findAll();

  Car findCarId(Integer carid);


  List<Cart> findCart(Integer id);


  Car findCarByCarId(Integer carid);


  void addtoCart(Cart cart);

  void deletecart(String cartid);

  void clearCart(Integer id);

  List<Cart> findCartItemByUid(Integer id);

  void addOrder(Order order);

  void addOrderItem(OrderItem orderItem);


  List<Order> findOrderAll(Integer id);


  Order findOrderByOid(String oid);

  void updateOid(String oid);
}
